<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('member','header'); ?>
<body>
<div id="main">
  <?php include template('order' , 'left'); ?>
  <div id="right">
    <p id="position"> <strong>当前位置：</strong><a href="">首页</a><a href="<?php echo $MODULE['member']['url'];?>">会员中心</a><a href="<?php echo $M['url'];?>">订单</a>查看订单</p>
    <div class="clear"></div>
    <table cellpadding="0" cellspacing="1" class="table_info">
      <caption>订单处理</caption>
<tr>
           <th width="10%">交易状态：</th>
           <td><?php echo $statusname;?> <?php if($status==0) { ?>您还有 <font color="red"><?php echo $closedtime['d'];?>天<?php echo $closedtime['h'];?>小时<?php echo $closedtime['m'];?>分钟<?php echo $closedtime['s'];?>秒</font> 来完成本次交易的付款。<?php } ?></td>            
        </tr>
<tr>
            <th>订单操作：</th>
            <td><?php if($status==0) { ?>		
<a href="<?php echo $M['url'];?>index.php?action=pay&orderid=<?php echo $orderid;?>" style="color:red;">立即付款</a> | <a href="<?php echo $M['url'];?>index.php?action=cancel&orderid=<?php echo $orderid;?>">取消订单</a> | <?php } ?><a href="<?php echo $M['url'];?>index.php?action=memo&orderid=<?php echo $orderid;?>">备注</a></td>            
        </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
           <td width="50%" valign="top">
    <table cellpadding="0" cellspacing="1" class="table_info">
      <caption>订单信息</caption>
<tr>
           <th width="20%">订单ID：</th>
           <td><?php echo $orderid;?></td>            
        </tr>
        <tr>
          <th>产品：</th>
          <td><a href="<?php echo $goodsurl;?>"><?php echo $goodsname;?></a></td>
        </tr>
        <tr>
          <th>单价：</th>
          <td><?php echo $price;?>元/<?php echo $unit;?></td>
        </tr>
        <tr>
          <th>数量：</th>
          <td><?php echo $number;?><?php echo $unit;?></td>
        </tr>
        <tr>
          <th>运费：</th>
          <td><?php echo $carriage;?>元</td>
        </tr>
<tr>
          <th>付款金额：</th>
          <td><span style="color:red;font-weight:bold">￥<?php echo $amount;?>元</span></td>
        </tr>
        <tr>
          <th>下单时间：</th>
          <td><?php echo date('Y-m-d H:i:s', $time);?></td>
        </tr>
</table>
   </td>
           <td valign="top">
    <table cellpadding="0" cellspacing="1" class="table_info">
      <caption>收货信息</caption>
<tr>
           <th width="20%">收货人：</th>
           <td><?php echo $consignee;?></td>            
        </tr>
        <tr>
          <th>区域：</th>
          <td><?php echo areaname($areaid);?></td>
        </tr>
        <tr>
          <th>电话：</th>
          <td><?php echo $telephone;?></td>
        </tr>
        <tr>
          <th>手机：</th>
          <td><?php echo $mobile;?></td>
        </tr>
        <tr>
          <th>地址：</th>
          <td><?php echo $address;?></td>
        </tr>
        <tr>
          <th>邮编：</th>
          <td><?php echo $postcode;?></td>
        </tr>
        <tr>
          <th>留言：</th>
          <td><?php echo $note;?></td>
        </tr>
</table>
   </td>            
        </tr>
</table>
  </div>
</div>
<div class="clear"></div>
<?php include template('member','footer'); ?>
